<template>
	<view class="content">
		<view class="menu-block">
			<view class="title-top">
				<view class="tips"></view>
				<view class="title">
					基本信息
				</view>
			</view>
			<view class="form-item">
				<view style="display: flex;flex-direction: row;">
					<view class="form-label">真实姓名</view>
				</view>
				<view class="form-ctrl">
					{{form.realName}}
				</view>
			</view>
			<view class="form-item">
				<view style="display: flex;flex-direction: row;">
					<view class="form-label">行业</view>
				</view>
				<view class="form-ctrl">
					{{form.industry}}
				</view>
			</view>
			<view class="form-item">
				<view style="display: flex;flex-direction: row;">
					<view class="form-label">手机号码</view>
				</view>
				<view class="form-ctrl">
					{{form.phone}}
				</view>
			</view>
			<view class="form-item">
				<view style="display: flex;flex-direction: row;">
					<view class="form-label">场地面积（㎡）</view>
				</view>
				<view class="form-ctrl">
					{{form.squareMeasure}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getSiteApplyForById
	} from '@/api/site.js';
	import {
		validate
	} from '@/util/validate.js'
	export default {
		data() {
			return {
				form: {
					name: '',
					phone: '',
					loanIdText:'',
				},
				id: null,
			}
		},
		methods: {
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
			getSiteApplyForById() {
				uni.showLoading({
					title: '加载中',
					mask: true
				})
				getSiteApplyForById({
					id: this.id
				}).then(data => {
					uni.hideLoading()
					this.form = data
				}).catch(() => {
					uni.hideLoading()
				})
			},
		},
		onLoad(e) {
			this.id = e.id
			this.getSiteApplyForById()
		},
		onReachBottom() {
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #fafafa;
	}
	.title-top{
		display: flex;
		.tips{
			width: 18rpx;
			height: 32rpx;
			border-radius: 20rpx;
			background-color: #0256FF;
			margin: 16rpx 12rpx 0 0;
		}
		
		.title{
			font-weight: 900;
			font-size: 32rpx;
			line-height: 65rpx;
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 1;
			margin-bottom: 32rpx;
		}
		
	}
	.form-ctrl {
		height: 100rpx;
		line-height: 100rpx;
		flex-grow: 1;
		font-size: 32rpx;
		color: #1A1A1A;
		font-weight: 400;
	}
	.content {
		width: 100%;
		padding: 30rpx;
		.menu-block {
			background: #fff;
			border-radius: 12px;
			padding: 30rpx;
			.form-title {
				font-size: 36rpx;
				font-weight: bold;
			}
			
			.form-item {
				display: flex;
				flex-direction: column;
				border-bottom: 1px solid #efefef;
				padding-top: 30rpx;
			
				.form-label {
					font-size: 32rpx;
					color: #1A1A1A;
					font-weight: 290;
				}
			
				.form-content {
					display: flex;
					flex-direction: column;
					// align-items: center;
			
					.form-ctrl {
						height: 100rpx;
						line-height: 100rpx;
						flex-grow: 1;
					}
			
					.arrow {
						flex-grow: 0;
						color: #999;
						font-size: 24rpx;
					}
				}
			}
		}
	}
</style>